import { PropType } from 'vue'

import { RankListType } from './config'

const rankProps = {
  datas: {
    type: Array
  }
} as const

const rankItemProps = {
  src: {
    type: String
  },
  text: {
    type: String
  },
  rankList: {
    type: Array as PropType<RankListType[]>
  }
} as const

const rankListProps = {
  ranking: {
    type: Number
  },
  text: {
    type: String
  },
  index: {
    type: Number,
    default:1
  }
} as const

export { rankProps ,rankItemProps, rankListProps }
